package com.bicon.botu.medical.dao.mapper

import com.baomidou.mybatisplus.mapper.BaseMapper
import com.baomidou.mybatisplus.plugins.Page
import com.bicon.botu.medical.model.dto.FoodAppDTO
import com.bicon.botu.medical.model.entity.Food
import org.springframework.stereotype.Repository

/**
 * @version 1.0.0
 * @author: Gyb
 * @date 2018/7/17
 * @description
 **/
@Repository
interface FoodMapper : BaseMapper<Food> {

    /**
     * 前台分页获取系统食物
     *
     * @param page
     * @param map
     * @return
     */
    fun getSystemFoodList(page: Page<FoodAppDTO>, map: Map<*, *>): List<FoodAppDTO>
    /**
     * 获取系统食物
     *
     * @param map
     * @return
     */
    fun getSystemFood(map: Map<String, String>): MutableList<FoodAppDTO>

}